﻿//document.write("<script type=\"text/javascript\" src=\"script/jquery-1.4.1.min.js\"></script>");

function dosearch(site, query) {
    if (site == "baidu")
        location = "http://www.baidu.com/s?wd=" + escape(query) + "&n=2";
}
function hit(container) {
    for (var i = 0; i < document.getElementById(container).childNodes.length; ++i) {
        var item = document.getElementById(container).childNodes.item(i);
        if ("a".toLowerCase() == item.nodeName.toLowerCase()) {
            var link1 = document.URL.substr(document.URL.lastIndexOf("/") + 1).toLowerCase();
            var link2 = item.href.substr(item.href.lastIndexOf("/") + 1).toLowerCase();
            if (link1 == link2) {
                item.style.color = "#000";
                item.style.fontWeight = "normal";
                item.style.textDecoration = "none";
            }
        }
    }
}
function selectOption(hidden, option) {
    document.getElementById(hidden).value = option.value;
}

function fixheight(f) {
    f.height = f.contentWindow.document.documentElement.scrollHeight;
}